package com.example.springredisdemo.listener;

import org.springframework.stereotype.Service;

@Service
public class RedisMessageListener2 implements MessageDelegate {

    private String channel = "test1";

    @Override
    public void onMessage(String message,String channel) {
        System.out.println("mesage:"+message+";channel:"+channel);
    }

    @Override
    public String getChannel() {
        return channel;
    }

}
